
<html lang="en"><head>
    <meta charset="utf-8">
    <title _msthash="149916" _msttexthash="14857739">腾讯视频轮播2 分页器</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
    <!-- Link Swiper's CSS -->
    <link rel="stylesheet" href="./swiper-bundle.min.css">
    <script src="./swiper-bundle.min.js"></script>
    <script src="../../三段/五月/jquery/jquery.js"></script>

    <!-- Demo styles -->
    <style>
      html,
      body {
        position: relative;
        height: 100%;
      }

      body {
        background: #eee;
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
        font-size: 14px;
        color: #000;
        margin: 0;
        padding: 0;
      }

      .swiper {
        width: 800px;
        height: 600px;
        --swiper-navigation-size:0;
      }

      .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;

        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
      }

      .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
     #btn{
        width: 200px;
        height: 200px;
        margin:50px auto;
     }
     .dd{
        position: fixed;
        top: 680px;
     }
    </style>
  </head>

  <body>
    <!-- Swiper -->
    <div class="swiper mySwiper swiper-initialized swiper-horizontal swiper-pointer-events swiper-backface-hidden">
      <div class="swiper-wrapper" id="swiper-wrapper-dbf72f34888210e03" aria-live="polite">
        
      </div>
     
      <div class="swiper-pagination swiper-pagination-clickable swiper-pagination-bullets swiper-pagination-horizontal dd"><span class="swiper-pagination-bullet swiper-pagination-bullet-active" tabindex="0" role="button" aria-label="转到幻灯片 1" aria-current="true" _mstaria-label="16292094"></span><span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="转到幻灯片 2" _mstaria-label="16292250"></span><span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="转到幻灯片 3" _mstaria-label="16292406"></span><span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="转到幻灯片 4" _mstaria-label="16292562"></span><span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="转到幻灯片 5" _mstaria-label="16292718"></span><span class="swiper-pagination-bullet" tabindex="0" role="button" aria-label="转到幻灯片 6" _mstaria-label="16292874"></span></div>
    <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span></div>
  <!-- 如果需要导航按钮 -->
  <div id="btn">
    <div class="button-prev" style="float:left ;"><img src="/22-06/06-13/images/左箭头.png" alt="" srcset=""></div>

    <div class="button-next" style="margin-left: 130px ;"><img src="/22-06/06-13/images/右箭头.png" alt="" srcset=""></div>
  </div>
  
    <!-- Swiper JS -->
    <script src="/22-06/swiper/swiper-bundle.js"></script>

    <!-- Initialize Swiper -->
    <script>
      var swiper = new Swiper(".mySwiper", {
        navigation: {
        nextEl: '.button-next',
        prevEl: '.button-prev',
      },
        slidesPerView: 2,
        slidesPerGroup: 2,
        spaceBetween: 30,
        pagination: {
          el: ".swiper-pagination",
          clickable: true,
          type: 'fraction',
        },
      });
      $(function(){
        var str = ''
        $.ajax({
            url: "https://liu.zzgoodqc.cn/banner", // 链接
            method: "GET",  //GET请求
            dataType: "json",      //不跨域
            success: function (e) {
              for (let i in e.data){
                 str +=`
                 <div class="swiper-slide swiper-slide-active" role="group" aria-label="${+i + 1}/ 6" _mstaria-label="16016" _msthash="966290" _msttexthash="8623654" style="width: 620px; margin-right: 30px;">
                    <img src="${e.data[i].img}" alt="">
                    </div>
                `
            }
            swiper.appendSlide(str)
        }
        })
     

      })
    </script>
  

</body>
</html>